package cn.aib.staservice.client;

import cn.aib.staservice.client.impl.UcenterClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
@Component
public interface UcenterClient {
    //获取某天的注册人数
    @GetMapping("/educenter/member/getRegisterFrom/{date}")
    Integer getRegisterFrom(@PathVariable("date") String date);
}
